<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8"/>
    <title>猿粪列表</title>
    <meta name="keywords" content="manager,service,manage"/>
    <meta name="description" content="猿粪列表,猿粪,猿粪管理"/>
    <meta name="viewport" content="width=device-width, initial-scale=1.0"/>
    <link rel="stylesheet" href="./assets/css/validationEngine.jquery.css" type="text/css">
    <link rel="stylesheet" href="./assets/css/datepicker.css"/>
    <style>
        table{
            table-layout:fixed;
        }
        td{
            overflow:hidden;
            text-overflow:ellipsis;
            white-space:nowrap;
        }
        @media screen and (min-width:768px){
            .modal-dialog{
                right:auto;left:50%;width:690px;padding-top:30px;padding-bottom: 30px;
            }
        }
        .btn-group>.btn>.caret{margin-top:0;}
    </style>
    <script src="./assets/js/jquery.validationEngine-zh_CN.js" type="text/javascript" charset="utf-8"></script>
    <script src="./assets/js/jquery.validationEngine.js" type="text/javascript" charset="utf-8"></script>
    <!-- basic styles -->
</head>
<body>
<div class="page-content page-content2">
    <div class="row">
        <div class="col-xs-12">
            <form id="yuanfenFormId" class="form-horizontal" role="form">
                <div class="topSearchBox">
                    <div class="input-group input-group-sm input-group-sm3">
                        <span class="input-group-addon group-addon group-addon2">昵称</span>
                        <span class="spanIcons"></span>
                        <input type="text" class="form-control form-control-two" id="search-nickname">
                    </div>

                    <div class="input-group input-group-sm input-group-sm3">
                        <span class="input-group-addon group-addon">手机号码</span>
                        <span class="spanIcons"></span>
                        <input type="text" class="form-control form-control-two validate[custom[number]]" id="search-phoneNo">
                    </div>
                    <div class="input-group input-group-sm input-group-sm3">
                        <span class="input-group-addon group-addon">权限</span>
                        <span class="spanIcons"></span>
                        <select class="form-control form-control-two" id="search-allowViewStatus">
                            <option value="">不限</option>
                            <option value="0">公开</option>
                            <option value="1">对好友公开</option>
                            <option value="2">部分好友不可见</option>
                            <option value="3">部分好友可见</option>
                            <option value="4">指定群组</option>
                            <option value="5">仅自己可见</option>
                        </select>
                    </div>
                    <div class="input-group input-group-sm input-group-sm3">
                        <span class="input-group-addon group-addon">所属分类</span>
                        <span class="spanIcons"></span>
                        <select class="form-control form-control-two" id="search-msgType">
                            <option value="">不限</option>
                            <option value="msg">帖子</option>
                            <option value="shareMsg">分享的帖子</option>
                            <option value="shareNews">分享的新闻</option>
                            <option value="shareGroup">分享的小组</option>
                            <option value="shareVideo">分享的视频</option>
                            <option value="groupMsg">小组的帖子</option>
                            <option value="shortVideo">短视频</option>
                            <option value="threeDimensionalVideo">3D视频</option>
                        </select>
                    </div>
                    <input id="recommend" type="checkbox"><label for="recommend">显示推荐内容</label>
                </div>
                <div class="topSearchBox">
                    <div class="input-group input-group-sm input-group-sm3">
                        <span class="input-group-addon group-addon">创建时间</span>
                        <input class="form-control date-picker form-control-three" id="endDate"
                               type="text" data-date-format="yyyy-mm-dd"/>
                        <span class="positi"> 至 </span>
                        <input class="form-control date-picker form-control-four" id="startDate"
                               type="text" data-date-format="yyyy-mm-dd"/>
                    </div>
                    <div class="input-group input-group-sm input-group-sm3">
                        <span class="input-group-addon group-addon">点赞个数</span>
                        <input class="form-control form-control-three validate[custom[positiveNumber ,number]]" id="search-maxLikesCount"
                               type="text" />
                        <span class="positi"> 至 </span>
                        <input class="form-control form-control-four validate[custom[positiveNumber ,number]]" id="search-minLikesCount"
                               type="text" />
                    </div>
                    <div class="input-group input-group-sm input-group-sm3">
                        <span class="input-group-addon group-addon">评论数</span>
                        <input class="form-control form-control-three validate[custom[positiveNumber ,number]]" id="search-maxCommentCount"
                               type="text" />
                        <span class="positi"> 至 </span>
                        <input class="form-control form-control-four validate[custom[positiveNumber ,number]]" id="search-minCommentCount"
                               type="text" />
                    </div>
                    <div class="input-group input-group-sm input-group-sm3">
                        <span class="input-group-addon group-addon">分享数</span>
                        <input class="form-control form-control-three validate[custom[positiveNumber ,number]]" id="search-maxShareCount"
                               type="text" />
                        <span class="positi"> 至 </span>
                        <input class="form-control form-control-four validate[custom[positiveNumber ,number]]" id="search-minShareCount"
                               type="text" />
                    </div>


                    <div class="input-group input-group-sm input-group-sm3" style="margin-left: 73px;">
                        <button id="dataSearch" class="btn btn-primary btn-sm" title="查询">
                            <i class="icon-search nav-search-icon"></i>
                        </button>
                        <button id="dataAdd" type="button" class="btn btn-primary btn-sm" title="帖子添加">
                            <i class="icon-plus-sign bigger-120"></i>
                        </button>
                        <!--<button id="datacomment" type="button" class="btn btn-primary btn-sm"-->
                            <!--data-toggle="modal" data-target="#commentModal" disabled-->
                            <!--title="帖子评论">-->
                            <!--<i class="icon-list bigger-130"></i>-->
                        <!--</button>-->
                        <button id="dataInfo" type="button" class="btn btn-primary btn-sm"
                            data-toggle="modal" data-target="#ForumInfoModal" disabled
                            title="帖子详情">
                            <i class="icon-list bigger-130"></i>
                        </button>
                        <button id="dataBack" type="button" class="btn btn-sm btn-success"
                            data-toggle="modal" data-target="#dataBackModal" disabled
                            title="帖子恢复">
                            <i class="icon-pencil bigger-130"></i>
                        </button>
                        <button id="datadelete" type="button" class="btn btn-sm btn-danger"
                            data-toggle="modal" data-target="#deleteModal" disabled
                            title="帖子删除">
                            <i class="icon-trash bigger-130"></i>
                        </button>
                    </div>
                </div>
            </form>

            <div class="row" style="margin-top: 0px;">
                <div class="col-xs-12">
                    <!-- PAGE CONTENT BEGINS -->
                    <table id="yuanfen_table" class="table"></table>
                    <!-- PAGE CONTENT ENDS -->
                </div>
                <!-- /.col -->
            </div>
        </div>
    </div>
    <!-- /.row -->
</div>
<!-- /.page-content -->

<!-- 添加的modal start-->
<div class="modal fade bs-example-modal-lg" id="addModal" tabindex="-1">
    <div class="modal-dialog" role="document">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal"
                        aria-label="Close">
                    <span aria-hidden="true">&times;</span>
                </button>
                <h4 class="modal-title" id="exampleModalLabel">添加帖子</h4>
            </div>
            <div class="modal-body">
                <form class="form-horizontal" id="addForm" data-type="add" target="_blank">
                    <div class="form-group">
                        <label class="col-sm-2 control-label">选择用户</label>
                        <div class="col-sm-10">
                            <select class="form-control" name="type" id="addUser">

                            </select>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-2 control-label">帖子类型</label>
                        <div class="col-sm-10">
                            <select class="form-control" name="type" id="addType">
                                <option value="msg">帖子</option>
                                <option value="shareMsg">分享的帖子</option>
                                <option value="shareNews">分享的新闻</option>
                                <option value="shareGroup">分享的小组</option>
                                <option value="shareVideo">分享的视频</option>
                                <option value="groupMsg">小组的帖子</option>
                            </select>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-2 control-label">帖子内容</label>
                        <div class="col-sm-10">
                            <input type="text" class="validate[required] form-control" name="introduction" id="addContent"
                                   placeholder="请输入内容">
                        </div>
                    </div>


                    <div class="form-group">
                        <label class="col-sm-2 control-label">帖子权限</label>
                        <div class="col-sm-10">
                            <select class="form-control" name="type" id="addLimit">
                                <option value="0">公开</option>
                                <option value="1">好友可见</option>
                                <option value="2">部分好友不可见</option>
                                <option value="3">部分好友可见</option>
                                <option value="4">指定群组</option>
                                <option value="5">仅限自己</option>
                            </select>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-2 control-label">缩放比例</label>
                        <div class="col-sm-10">
                            <input type="text" class="firstImageScale" name="distributionCosts" placeholder="请输入缩放比">
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-2 control-label">布局参数</label>
                        <div class="col-sm-10">
                            <input type="text" class="imageLayoutType" name="distributionCosts" placeholder="请输入布局参数">
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-2 control-label">文件上传</label>
                        <div class="col-sm-10">
                            <input type="file" name="files" id="addFiles" class="addFiles" multiple />
                        </div>
                    </div>

                    <div class="form-group">
                        <label class="col-sm-2 control-label">标签信息</label>
                        <div class="col-sm-10">
                            <select class="form-control Label" name="type" id="addLabel">

                            </select>
                            <!--<div id="addLabel" style="margin-top: 5px;">-->

                            <!--</div>-->
                        </div>
                    </div>
                </form>

            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-primary" name="submit" data-type="add">保存</button>
                <!--  <button type="reset" class="btn btn-warnning">重置</button> -->
                <button type="button" class="btn btn-default" data-dismiss="modal">取消</button>

            </div>
        </div>
    </div>
</div>
<!-- 添加的modal end-->

<!-- 修改的modal start-->
<div class="modal fade bs-example-modal-lg" id="updateModal" tabindex="-1">
    <div class="modal-dialog" role="document">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal"
                        aria-label="Close">
                    <span aria-hidden="true">&times;</span>
                </button>
                <h4 class="modal-title" id="exampleModalLabel">修改帖子</h4>
            </div>
            <div class="modal-body">
                <form class="form-horizontal" id="updateForm" data-type="update" target="_blank">

                    <!--<div class="form-group">-->
                        <!--<label class="col-sm-2 control-label">用户ID</label>-->
                        <!--<div class="col-sm-10">-->
                            <!--<input type="text" class="validate[required] form-control" name="userId" id="updateUserId"-->
                                   <!--placeholder="请输入ID">-->
                        <!--</div>-->
                    <!--</div>-->
                    <div class="form-group">
                        <label class="col-sm-2 control-label">用户昵称</label>
                        <div class="col-sm-10">
                            <input type="text" class="validate[required] form-control" name="nickName" id="updateNickName"
                                   placeholder="请输入昵称">
                        </div>
                    </div>
                    <!--<div class="form-group">-->
                        <!--<label class="col-sm-2 control-label">用户头像</label>-->
                        <!--<div class="col-sm-10">-->
                            <!--<input type="text" class="validate[required] form-control" name="userHeadUrl" id="updateUserHeardUrl"-->
                                   <!--placeholder="请输入头像地址">-->
                        <!--</div>-->
                    <!--</div>-->
                    <div class="form-group">
                        <label class="col-sm-2 control-label">帖子类型</label>
                        <div class="col-sm-10">
                            <select class="form-control" name="type" id="updateType">
                                <option value="msg">帖子</option>
                                <option value="shareMsg">分享的帖子</option>
                                <option value="shareNews">分享的新闻</option>
                                <option value="shareGroup">分享的小组</option>
                                <option value="shareVideo">分享的视频</option>
                                <option value="groupMsg">小组的帖子</option>
                            </select>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-2 control-label">帖子内容</label>
                        <div class="col-sm-10">
                            <input type="text" class="validate[required] form-control" name="introduction" id="updateContent"
                                   placeholder="请输入内容">
                        </div>
                    </div>


                    <div class="form-group">
                        <label class="col-sm-2 control-label">帖子权限</label>
                        <div class="col-sm-10">
                            <select class="form-control" name="type" id="updateLimit">
                                <option value="0">公开</option>
                                <option value="1">好友可见</option>
                                <option value="2">部分好友不可见</option>
                                <option value="3">部分好友可见</option>
                                <option value="4">指定群组</option>
                                <option value="5">仅限自己</option>
                            </select>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-2 control-label">缩放比例</label>
                        <div class="col-sm-10">
                            <input type="text" class="updateFirstImageScale" name="distributionCosts" placeholder="请输入缩放比">
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-2 control-label">布局参数</label>
                        <div class="col-sm-10">
                            <input type="text" class="updateImageLayoutType" name="distributionCosts" placeholder="请输入布局参数">
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-2 control-label">用户经度</label>
                        <div class="col-sm-10">
                            <input type="text" class="updateUserLongitude" name="distributionCosts" placeholder="请输入用户经度">
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-2 control-label">用户纬度</label>
                        <div class="col-sm-10">
                            <input type="text" class="updateUserLatitude" name="distributionCosts" placeholder="请输入用户纬度">
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-2 control-label">位置标签</label>
                        <div class="col-sm-10">
                            <input type="text" class="updateLocal" name="distributionCosts" placeholder="请输入位置标签">
                        </div>
                    </div>

                    <div class="form-group">
                        <label class="col-sm-2 control-label">文件上传</label>
                        <div class="col-sm-10">
                            <input type="file" name="files" id="updateFiles" class="addFiles" multiple />
                        </div>
                    </div>

                    <div class="form-group">
                        <label class="col-sm-2 control-label">标签信息</label>
                        <div class="col-sm-10">
                            <select class="form-control Label" name="type" id="updateLabel">

                            </select>
                        </div>
                    </div>

                    <!--<div class="form-group mediaType">-->
                    <!--<label class="col-sm-2 control-label">媒体类型</label>-->
                    <!--<div class="col-sm-10">-->
                    <!--<input type="text" name="distributionCosts" placeholder="媒体类型" readonly>-->
                    <!--</div>-->
                    <!--</div>-->
                    <!--<div class="form-group resourceUrl">-->
                    <!--<label class="col-sm-2 control-label">媒体地址</label>-->
                    <!--<div class="col-sm-10">-->
                    <!--<input type="text" name="distributionCosts" placeholder="媒体地址" readonly>-->
                    <!--</div>-->
                    <!--</div>-->
                </form>

            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-primary" name="submit" data-type="update">保存</button>
                <!--  <button type="reset" class="btn btn-warnning">重置</button> -->
                <button type="button" class="btn btn-default" data-dismiss="modal">取消</button>

            </div>
        </div>
    </div>
</div>
<!-- 修改的modal end-->

<!-- 评论的modal start-->
<div class="modal fade" id="commentModal" tabindex="-1" role="dialog"
     aria-labelledby="exampleModalLabel">
    <div  class="modal-dialog" role="document">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal"
                        aria-label="Close">
                    <span aria-hidden="true">&times;</span>
                </button>
                <h4 class="modal-title" id="exampleModalLabel">评论详情</h4>
            </div>
            <div class="modal-body">
                <table id="comment_table" class="table"></table>
            </div>
        </div>
    </div>
</div>
<!-- 评论的modal end-->

<!--播放视频的modal start-->
<div class="modal fade" id="VideoModal" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel">
    <div class="modal-dialog" role="document" style="width: 300px;">
        <i class="glyphicon glyphicon-remove-circle closeVideo" style="position: absolute;right: 20px;top: 40px;font-size: 26px;z-index: 10;"></i>
        <video controls src="" style="width: 100%;"></video>
    </div>
    <!--<div class="modal-dialog" role="document">-->
        <!--<div class="modal-content">-->
            <!--<div class="modal-body" id="playVideo">-->
                <!--<video controls src=""></video>-->
            <!--</div>-->
        <!--</div>-->
    <!--</div>-->
</div>
<!-- 播放视频的modal end-->

<!-- 删除的modal start-->
<div class="modal fade" id="deleteModal" tabindex="-1">
    <div class="modal-dialog" role="document">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal"
                        aria-label="Close">
                    <span aria-hidden="true">×</span>
                </button>
                <h4 class="modal-title" id="myModalLabel">删除帖子</h4>
            </div>
            <!--Form的id为myForm-->
            <form id="deleteForm" data-type="delete">
                <div class="modal-body"></div>
                <div class="modal-footer">
                    <button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
                    <button type="button" class="btn btn-primary deleteInfo" name="submit" data-type="delete">确认</button>
                </div>
            </form>
        </div>
    </div>
</div>
<!-- 删除的modal end-->

<!-- 恢复的modal start-->
<div class="modal fade" id="dataBackModal" tabindex="-1">
    <div class="modal-dialog" role="document">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal"
                        aria-label="Close">
                    <span aria-hidden="true">×</span>
                </button>
                <h4 class="modal-title" id="myModalLabel">恢复帖子</h4>
            </div>
            <!--Form的id为myForm-->
            <form id="backForm" data-type="back">
                <div class="modal-body"></div>
                <div class="modal-footer">
                    <button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
                    <button type="button" class="btn btn-primary backInfo" name="submit" data-type="dataBack">确认</button>
                </div>
            </form>
        </div>
    </div>
</div>
<!-- 恢复的modal end-->
<script src="./assets/js/date-time/bootstrap-datepicker.min.js"></script>
<script src="script/yuanfenList.js"></script>
</body>
</html>
